Optimal. Leaf size=44 \[ \frac{2 (A-C) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d}+\frac{2 C \sin (c+d x)}{d \sqrt{\cos (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0618465, antiderivative size = 44, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.13, Rules used = {4066, 3012, 2639} \[ \frac{2 (A-C) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d}+\frac{2 C \sin (c+d x)}{d \sqrt{\cos (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4066
Rule 3012
Rule 2639
Rubi steps
\begin{align*} \int \sqrt{\cos (c+d x)} \left (A+C \sec ^2(c+d x)\right ) \, dx &=\int \frac{C+A \cos ^2(c+d x)}{\cos ^{\frac{3}{2}}(c+d x)} \, dx\\ &=\frac{2 C \sin (c+d x)}{d \sqrt{\cos (c+d x)}}-(-A+C) \int \sqrt{\cos (c+d x)} \, dx\\ &=\frac{2 (A-C) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d}+\frac{2 C \sin (c+d x)}{d \sqrt{\cos (c+d x)}}\\ \end{align*}
Mathematica [C] time = 1.61253, size = 289, normalized size = 6.57 \[ \frac{\cos ^2(c+d x) \left (A+C \sec ^2(c+d x)\right ) \left (-\frac{4 \csc (c) (A \cos (2 c+d x)+(A-2 C) \cos (d x))}{d \sqrt{\cos (c+d x)}}+\frac{2 (A-C) \csc \left (\frac{c}{2}\right ) \sec \left (\frac{c}{2}\right ) \sqrt{e^{-i d x} \left (2 i \sin (c) \left (-1+e^{2 i d x}\right )+2 \cos (c) \left (1+e^{2 i d x}\right )\right )} \sqrt{i \sin (2 c) e^{2 i d x}+\cos (2 c) e^{2 i d x}+1} \left (3 \text{Hypergeometric2F1}\left (-\frac{1}{4},\frac{1}{2},\frac{3}{4},-e^{2 i d x} (\cos (c)+i \sin (c))^2\right )+e^{2 i d x} \text{Hypergeometric2F1}\left (\frac{1}{2},\frac{3}{4},\frac{7}{4},-e^{2 i d x} (\cos (c)+i \sin (c))^2\right )\right )}{3 d \left (i \sin (c) \left (-1+e^{2 i d x}\right )+\cos (c) \left (1+e^{2 i d x}\right )\right )}\right )}{2 (A \cos (2 (c+d x))+A+2 C)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 2.312, size = 149, normalized size = 3.4 \begin{align*} 2\,{\frac{A\sqrt{ \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}}\sqrt{2\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1}{\it EllipticE} \left ( \cos \left ( 1/2\,dx+c/2 \right ) ,\sqrt{2} \right ) -C\sqrt{ \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}}\sqrt{2\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1}{\it EllipticE} \left ( \cos \left ( 1/2\,dx+c/2 \right ) ,\sqrt{2} \right ) +2\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}\cos \left ( 1/2\,dx+c/2 \right ) C}{\sin \left ( 1/2\,dx+c/2 \right ) \sqrt{2\, \left ( \cos \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1}d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (C \sec \left (d x + c\right )^{2} + A\right )} \sqrt{\cos \left (d x + c\right )}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (C \sec \left (d x + c\right )^{2} + A\right )} \sqrt{\cos \left (d x + c\right )}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (C \sec \left (d x + c\right )^{2} + A\right )} \sqrt{\cos \left (d x + c\right )}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]